﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	    : FI.Net Application Framework
// COMPONENT ID	    : FI.Core
// COMPONENT DESC   : FI.Net Core Foundation
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

using System.Globalization;

namespace FI.Core
{
    /// <summary>
    /// This unity class is used to Resource string formatting.
    /// </summary>
    public static class ResourceUtility
    {
        /// <summary>
        /// Formats the specified resource string based on the current culture.
        /// </summary>
        /// <param name="resourceString">The resource string.</param>
        /// <param name="arguments">The parameters.</param>
        /// <returns>The formatted literal text.</returns>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
        public static string Format(string resourceString, params object[] arguments)
        {
            return string.Format(CultureInfo.CurrentCulture, resourceString, arguments);
        }
    }
}
